package model.colorled.sequential;

import org.junit.Test;

import framework.common.Sensor;
import framework.sequential.DeviceServer;
import framework.sequential.HubServer;

public class ColorLEDMain {
	@Test
	public void testColorLED1() {
		HubServer hub = new HubServer();

		Sensor sensor = new ColorLEDSensor();
		DeviceServer dev = new DeviceServer("A'LED0");
		dev.setSensor(sensor);
		dev.setHub(hub);
		dev.register("A");

		ColorLEDClient client = new ColorLEDClient("A");
		client.setHub(hub);
		client.connect(dev);

		client.setRed(0xff);
		client.setGreen(0xcc);
		client.setBlue(0x99);
		client.setColor(0x33, 0x66, 0x00);
	}

}
